﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;

using System.Windows.Forms;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace nadModel.Controls
{
    public partial class hTextBox : TextBox
    {
        protected override void InitLayout()
        {
            base.InitLayout();
            this.Margin = new Padding(3, 0, 3, 3);
        }



        protected override void OnMouseEnter(EventArgs e)
        {
            base.OnMouseEnter(e);
            try
            {
                //  Process.Start("C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe");
                if (config.config.GetTuoch())
                {
                    //  Process.Start("C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe");
                    //Process.Start("C:\\Windows\\System32\\osk.exe");
                    Process.Start(AppDomain.CurrentDomain.BaseDirectory + "\\osk.exe");
                }
                else
                { Process.Start(@"%windir%\system32\osk.exe"); };
            }
            catch (Exception ex)
            { }
        }
    }
}
